home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_d / odbcall.zip / DEMO.ZIP / DEMO1.DFM / DEMO1.txt
Text File  |  1995-08-01  |  13KB  |  374 lines

  1. object Form1: TForm1
  2.   Left = 204
  3.   Top = 103
  4.   Width = 478
  5.   Height = 315
  6.   Caption = 'Form1'
  7.   Font.Color = clBlack
  8.   Font.Height = -12
  9.   Font.Name = 'Arial'
  10.   Font.Style = []
  11.   PixelsPerInch = 96
  12.   TextHeight = 15
  13.   object Panel1: TPanel
  14.     Left = 0
  15.     Top = 135
  16.     Width = 466
  17.     Height = 149
  18.     Align = alClient
  19.     TabOrder = 0
  20.     object Panel2: TPanel
  21.       Left = 1
  22.       Top = 1
  23.       Width = 64
  24.       Height = 147
  25.       Align = alLeft
  26.       BevelOuter = bvNone
  27.       TabOrder = 0
  28.       object Label4: TLabel
  29.         Left = 14
  30.         Top = 6
  31.         Width = 36
  32.         Height = 15
  33.         Caption = 'Notes:'
  34.       end
  35.     end
  36.     object ODBCMemo1: TODBCMemo
  37.       Left = 65
  38.       Top = 1
  39.       Width = 400
  40.       Height = 147
  41.       Align = alClient
  42.       ODBCField = 'NOTES'
  43.       ODBCSource = DemoQuery
  44.       TabOrder = 1
  45.     end
  46.   end
  47.   object Panel3: TPanel
  48.     Left = 0
  49.     Top = 0
  50.     Width = 466
  51.     Height = 135
  52.     Align = alTop
  53.     TabOrder = 1
  54.     object Label1: TLabel
  55.       Left = 27
  56.       Top = 18
  57.       Width = 23
  58.       Height = 15
  59.       Caption = 'Key:'
  60.     end
  61.     object Label2: TLabel
  62.       Left = 22
  63.       Top = 47
  64.       Width = 30
  65.       Height = 15
  66.       Caption = 'Char:'
  67.     end
  68.     object Label3: TLabel
  69.       Left = 22
  70.       Top = 76
  71.       Width = 29
  72.       Height = 15
  73.       Caption = 'Date:'
  74.     end
  75.     object SpeedButton1: TSpeedButton
  76.       Left = 248
  77.       Top = 9
  78.       Width = 25
  79.       Height = 25
  80.       Hint = 'Next'
  81.       Glyph.Data = {
  82.         78010000424D7801000000000000760000002800000020000000100000000100
  83.         04000000000000000000120B0000120B00000000000000000000000000000000
  84.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  85.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
  86.         3333333333333333333333333333333333333FFF333333333333000333333333
  87.         3333777FFF3FFFFF33330B000300000333337F777F777773F333000E00BFBFB0
  88.         3333777F773333F7F333000E0BFBF0003333777F7F3337773F33000E0FBFBFBF
  89.         0333777F7F3333FF7FFF000E0BFBF0000003777F7F3337777773000E0FBFBFBF
  90.         BFB0777F7F33FFFFFFF7000E0BF000000003777F7FF777777773000000BFB033
  91.         33337777773FF733333333333300033333333333337773333333333333333333
  92.         3333333333333333333333333333333333333333333333333333333333333333
  93.         33333333333333333333333333333333333333333333333333330000}
  94.       NumGlyphs = 2
  95.       ParentShowHint = False
  96.       ShowHint = True
  97.       OnClick = SpeedButton1Click
  98.     end
  99.     object SpeedButton2: TSpeedButton
  100.       Left = 223
  101.       Top = 9
  102.       Width = 25
  103.       Height = 25
  104.       Hint = 'Prior'
  105.       Glyph.Data = {
  106.         78010000424D7801000000000000760000002800000020000000100000000100
  107.         04000000000000000000120B0000120B00000000000000000000000000000000
  108.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  109.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
  110.         33333333333333333333333333333333333333333333333333FF333333333333
  111.         3000333333FFFFF3F77733333000003000B033333777773777F733330BFBFB00
  112.         E00033337FFF3377F7773333000FBFB0E000333377733337F7773330FBFBFBF0
  113.         E00033F7FFFF3337F7773000000FBFB0E000377777733337F7770BFBFBFBFBF0
  114.         E00073FFFFFFFF37F777300000000FB0E000377777777337F7773333330BFB00
  115.         000033333373FF77777733333330003333333333333777333333333333333333
  116.         3333333333333333333333333333333333333333333333333333333333333333
  117.         33333333333333333333333333333333333333333333333333330000}
  118.       NumGlyphs = 2
  119.       ParentShowHint = False
  120.       ShowHint = True
  121.       OnClick = SpeedButton2Click
  122.     end
  123.     object SpeedButton3: TSpeedButton
  124.       Left = 198
  125.       Top = 9
  126.       Width = 25
  127.       Height = 25
  128.       Hint = 'First'
  129.       Glyph.Data = {
  130.         78010000424D7801000000000000760000002800000020000000100000000100
  131.         04000000000000000000120B0000120B00000000000000000000000000000000
  132.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  133.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333000000000
  134.         333333777777777F33333330B00000003333337F7777777F3333333000000000
  135.         333333777777777F333333330EEEEEE033333337FFFFFF7F3333333300000000
  136.         333333377777777F3333333330BFBFB03333333373333373F33333330BFBFBFB
  137.         03333337F33333F7F33333330FBFBF0F03333337F33337F7F33333330BFBFB0B
  138.         03333337F3F3F7F7333333330F0F0F0033333337F7F7F773333333330B0B0B03
  139.         3333333737F7F7F333333333300F0F03333333337737F7F33333333333300B03
  140.         333333333377F7F33333333333330F03333333333337F7F33333333333330B03
  141.         33333333333737333333333333333033333333333333733333330000}
  142.       NumGlyphs = 2
  143.       ParentShowHint = False
  144.       ShowHint = True
  145.       OnClick = SpeedButton3Click
  146.     end
  147.     object SpeedButton4: TSpeedButton
  148.       Left = 273
  149.       Top = 9
  150.       Width = 25
  151.       Height = 25
  152.       Hint = 'Last'
  153.       Glyph.Data = {
  154.         78010000424D7801000000000000760000002800000020000000100000000100
  155.         04000000000000000000120B0000120B00000000000000000000000000000000
  156.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  157.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333033333
  158.         33333333373F33333333333330B03333333333337F7F33333333333330F03333
  159.         333333337F7FF3333333333330B00333333333337F773FF33333333330F0F003
  160.         333333337F7F773F3333333330B0B0B0333333337F7F7F7F3333333300F0F0F0
  161.         333333377F73737F33333330B0BFBFB03333337F7F33337F33333330F0FBFBF0
  162.         3333337F7333337F33333330BFBFBFB033333373F3333373333333330BFBFB03
  163.         33333337FFFFF7FF3333333300000000333333377777777F333333330EEEEEE0
  164.         33333337FFFFFF7FF3333333000000000333333777777777F33333330000000B
  165.         03333337777777F7F333333300000000033333377777777733330000}
  166.       NumGlyphs = 2
  167.       ParentShowHint = False
  168.       ShowHint = True
  169.       OnClick = SpeedButton4Click
  170.     end
  171.     object SpeedButton5: TSpeedButton
  172.       Left = 273
  173.       Top = 33
  174.       Width = 25
  175.       Height = 25
  176.       Hint = 'Update'
  177.       Glyph.Data = {
  178.         78010000424D7801000000000000760000002800000020000000100000000100
  179.         04000000000000000000120B0000120B00000000000000000000000000000000
  180.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  181.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
  182.         333333FFFFFFFFFFFFF33000077777770033377777777777773F000007888888
  183.         00037F3337F3FF37F37F00000780088800037F3337F77F37F37F000007800888
  184.         00037F3337F77FF7F37F00000788888800037F3337777777337F000000000000
  185.         00037F3FFFFFFFFFFF7F00000000000000037F77777777777F7F000FFFFFFFFF
  186.         00037F7F333333337F7F000FFFFFFFFF00037F7F333333337F7F000FFFFFFFFF
  187.         00037F7F333333337F7F000FFFFFFFFF00037F7F333333337F7F000FFFFFFFFF
  188.         00037F7F333333337F7F000FFFFFFFFF07037F7F33333333777F000FFFFFFFFF
  189.         0003737FFFFFFFFF7F73300999999999003337777777777777330000}
  190.       NumGlyphs = 2
  191.       ParentShowHint = False
  192.       ShowHint = True
  193.       OnClick = SpeedButton5Click
  194.     end
  195.     object SpeedButton6: TSpeedButton
  196.       Left = 198
  197.       Top = 33
  198.       Width = 25
  199.       Height = 25
  200.       Hint = 'Delete'
  201.       Glyph.Data = {
  202.         78010000424D7801000000000000760000002800000020000000100000000100
  203.         04000000000000000000120B0000120B00000000000000000000000000000000
  204.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  205.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00555555555555
  206.         55555FFFFFFF5F55FFF5777777757559995777777775755777F7555555555550
  207.         305555555555FF57F7F555555550055BB0555555555775F777F55555550FB000
  208.         005555555575577777F5555550FB0BF0F05555555755755757F555550FBFBF0F
  209.         B05555557F55557557F555550BFBF0FB005555557F55575577F555500FBFBFB0
  210.         B05555577F555557F7F5550E0BFBFB00B055557575F55577F7F550EEE0BFB0B0
  211.         B05557FF575F5757F7F5000EEE0BFBF0B055777FF575FFF7F7F50000EEE00000
  212.         B0557777FF577777F7F500000E055550805577777F7555575755500000555555
  213.         05555777775555557F55550005555555055555777555555575550000}
  214.       NumGlyphs = 2
  215.       ParentShowHint = False
  216.       ShowHint = True
  217.       OnClick = SpeedButton6Click
  218.     end
  219.     object SpeedButton7: TSpeedButton
  220.       Left = 223
  221.       Top = 33
  222.       Width = 25
  223.       Height = 25
  224.       Hint = 'Insert'
  225.       Glyph.Data = {
  226.         76010000424D7601000000000000760000002800000020000000100000000100
  227.         04000000000000010000130B0000130B00000000000000000000000000000000
  228.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  229.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
  230.         33333333FF33333333FF333993333333300033377F3333333777333993333333
  231.         300033F77FFF3333377739999993333333333777777F3333333F399999933333
  232.         33003777777333333377333993333333330033377F3333333377333993333333
  233.         3333333773333333333F333333333333330033333333F33333773333333C3333
  234.         330033333337FF3333773333333CC333333333FFFFF77FFF3FF33CCCCCCCCCC3
  235.         993337777777777F77F33CCCCCCCCCC3993337777777777377333333333CC333
  236.         333333333337733333FF3333333C333330003333333733333777333333333333
  237.         3000333333333333377733333333333333333333333333333333}
  238.       NumGlyphs = 2
  239.       ParentShowHint = False
  240.       ShowHint = True
  241.       OnClick = SpeedButton7Click
  242.     end
  243.     object Label5: TLabel
  244.       Left = 201
  245.       Top = 76
  246.       Width = 62
  247.       Height = 15
  248.       Caption = 'Record No:'
  249.     end
  250.     object SpeedButton8: TSpeedButton
  251.       Left = 248
  252.       Top = 33
  253.       Width = 25
  254.       Height = 25
  255.       Hint = 'Go to record'
  256.       Glyph.Data = {
  257.         76010000424D7601000000000000760000002800000020000000100000000100
  258.         04000000000000010000130B0000130B00000000000000000000000000000000
  259.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  260.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
  261.         333333333333333333FF33333333333330003FF3FFFFF3333777003000003333
  262.         300077F777773F333777E00BFBFB033333337773333F7F33333FE0BFBF000333
  263.         330077F3337773F33377E0FBFBFBF033330077F3333FF7FFF377E0BFBF000000
  264.         333377F3337777773F3FE0FBFBFBFBFB039977F33FFFFFFF7377E0BF00000000
  265.         339977FF777777773377000BFB03333333337773FF733333333F333000333333
  266.         3300333777333333337733333333333333003333333333333377333333333333
  267.         333333333333333333FF33333333333330003333333333333777333333333333
  268.         3000333333333333377733333333333333333333333333333333}
  269.       NumGlyphs = 2
  270.       ParentShowHint = False
  271.       ShowHint = True
  272.       OnClick = SpeedButton8Click
  273.     end
  274.     object Button1: TButton
  275.       Left = 367
  276.       Top = 6
  277.       Width = 89
  278.       Height = 33
  279.       Caption = 'Create Table'
  280.       TabOrder = 0
  281.       TabStop = False
  282.       OnClick = Button1Click
  283.     end
  284.     object Edit4: TEdit
  285.       Left = 278
  286.       Top = 72
  287.       Width = 61
  288.       Height = 22
  289.       TabOrder = 1
  290.       Text = '0'
  291.     end
  292.     object ODBCEdit1: TODBCEdit
  293.       Left = 68
  294.       Top = 14
  295.       Width = 121
  296.       Height = 22
  297.       ODBCField = 'MYKEY'
  298.       ODBCSource = DemoQuery
  299.       TabOrder = 2
  300.     end
  301.     object ODBCEdit2: TODBCEdit
  302.       Left = 68
  303.       Top = 43
  304.       Width = 121
  305.       Height = 22
  306.       ODBCField = 'CHARFIELD'
  307.       ODBCSource = DemoQuery
  308.       TabOrder = 3
  309.     end
  310.     object ODBCEdit3: TODBCEdit
  311.       Left = 68
  312.       Top = 72
  313.       Width = 121
  314.       Height = 22
  315.       ODBCField = 'DATEFIELD'
  316.       ODBCSource = DemoQuery
  317.       TabOrder = 4
  318.     end
  319.   end
  320.   object Connection: TODBCCon
  321.     ConnectionMethod = cmConnect
  322.     DataSource = 'InterBase'
  323.     Left = 377
  324.     Top = 78
  325.   end
  326.   object DemoQuery: TODBCQuery
  327.     Active = False
  328.     Connection = 'InterBase'
  329.     EditFields.Strings = (
  330.       'CHARFIELD'
  331.       'DATEFIELD'
  332.       'MYKEY'
  333.       'NOTES')
  334.     KeyFields.Strings = (
  335.       'MYKEY')
  336.     SQL.Strings = (
  337.       'Select * from DemoTable where MyKey < 90 '
  338.       'union'
  339.       'Select * from DemoTable where MyKey > 90'
  340.       '')
  341.     UpdateTable = 'DemoTable'
  342.     Left = 412
  343.     Top = 78
  344.   end
  345.   object CreateTable: TODBCQuery
  346.     Active = False
  347.     Connection = 'InterBase'
  348.     SQL.Strings = (
  349.       'create table DemoTable('
  350.       'MyKey integer not null,'
  351.       'CharField Char(50),'
  352.       'DateField Date,'
  353.       'Notes Blob sub_type Text,'
  354.       'primary key(MyKey))')
  355.     Left = 377
  356.     Top = 44
  357.   end
  358.   object InsertValues: TODBCQuery
  359.     Active = False
  360.     Connection = 'InterBase'
  361.     Params.Param = {
  362.       030000000900084B657956616C756504000A000000000001007C0000000A0009
  363.       4368617256616C756501003200000000000100001B70000100006C2C1B68001A
  364.       1724981A1724000000002000CC003B41D7250C1A17241D5BD7250C1A17240C1A
  365.       1724C20A00000A00094461746556616C756509000A00000000000100B8110800
  366.       0000}
  367.     SQL.Strings = (
  368.       'Insert into DemoTable (MyKey, CharField, DateField) values'
  369.       '(?, ?, ?)')
  370.     Left = 411
  371.     Top = 43
  372.   end
  373. end
  374.